package com.lhm.mapper;


import com.lhm.entity.Hot;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

;import java.util.List;

//热点
@Mapper
public interface HotMapper {
    //添加
    public int addHot(Hot hot);
    //查询全部
    public List<Hot> findAll();
    //删除
    public int delete(Integer id);
    //根据id查找
    public Hot findById(int id);
    //根据类别查询
    public List<Hot> findByType(@Param("type") int n1, @Param("num") int n2);
}
